﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<ali:Get ID="Config" Object="InstanceConfig" Operation="GetBasicSettings()" Validate="True" />
<section data-page="config_basic" data-title="基本设置" data-lang="<%=ContentLang%>">
	<dl class="path1">
		<dt><span>您的位置：</span>基本设置</dt>
		<dd>
			<select data-class="<%=ContentLang%>Font" data-ali-widget="combo">
				<ali:List Object="Language" Source="Manager.Languages">
					<ali:Record>
						<%If Convert.ToString(Ab) == ContentLang%>
							<option value="<%=Ab%>" selected><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%Else%>
							<option value="<%=Ab%>"><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%EndIf%>
					</ali:Record>
				</ali:List>
			</select>
		</dd>
	</dl>
	<form action="" class="post">
		<div class="post-body">
			<div class="ali-tabs" data-event="click">
				<div class="ali-tabs-header">
					<div class="ali-tabs-nav-container">
						<ul>
							<li><a>基本设置</a></li>
							<li><a href="email.aspx?Lang=<%=ContentLang%>" target="ali-navtab">邮件设置</a></li>
							<li><a href="water_mark.aspx?Lang=<%=ContentLang%>" target="ali-navtab">水印设置</a></li>
							<li><a href="white_list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">白名单</a></li>
							<li><a href="black_list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">黑名单</a></li>
							<li><a href="keyword_filter.aspx?Lang=<%=ContentLang%>" target="ali-navtab">关键词过滤</a></li>
							<li><a href="global.aspx?Lang=<%=ContentLang%>" target="ali-navtab">全局设置</a></li>
						</ul>				
					</div>
				</div>
				<div class="ali-tabs-body">
					<div class="ali-tabs-panel">
						<table class="post-table margin2">
							<tr>
								<th>网站名称：</th>
								<td><input type="text" name="Name" value="<%=Config[Name]%>" size="40" maxlength="100" class="ali-input ali-input-required <%=ContentLang%>Font"></td>
							</tr>
							<tr>
								<th>网站简介：</th>
								<td>
									<textarea name="Description" data-instance="<%=InstanceID%>" class="editor"><%=HttpUtility.HtmlEncode(Config[Description].ToString())%></textarea>
								</td>
							</tr>
							<tr>
								<th>网站公告：</th>
								<td><textarea type="text" name="Notice" cols="60" rows="4" wrap="off" class="ali-input <%=ContentLang%>Font"><%=Config[Notice]%></textarea></td>
							</tr>
							<tr>
								<th>脚注（版权信息）：</th>
								<td>
									<textarea name="Footer" data-instance="<%=InstanceID%>" class="editor"><%=HttpUtility.HtmlEncode(Config[Footer].ToString())%></textarea>
								</td>
							</tr>
							<tr>
								<th>统计代码：</th>
								<td><textarea type="text" name="StatCode" cols="60" rows="2" wrap="off" class="ali-input"><%=Config[StatCode]%></textarea></td>
							</tr>
							<tr>
								<th>上传类型：</th>
								<td><textarea type="text" name="UploadType" cols="60" rows="4" wrap="off" class="ali-input"><%=Config[UploadType]%></textarea></td>
							</tr>
							<tr>
								<th>404错误页面：</th>
								<td><input type="text" name="Error404Redirect" value="<%=Config[Error404Redirect]%>" size="60" class="ali-input"></td>
							</tr>
							<tr>
								<th>错误页面：</th>
								<td><input type="text" name="ErrorRedirect" value="<%=Config[ErrorRedirect]%>" size="60" class="ali-input"></td>
							</tr>
							<tr>
								<th>显示验证码：</th>
								<td>
									<%If Convert.ToBoolean(Config[DisplayCheckCode])%>
										<label><input type="radio" name="DisplayCheckCode" value="true" checked="checked">是</label>
										<label><input type="radio" name="DisplayCheckCode" value="false">否</label>
									<%Else%>
										<label><input type="radio" name="DisplayCheckCode" value="true">是</label>
										<label><input type="radio" name="DisplayCheckCode" value="false" checked="checked">否</label>
									<%EndIf%>
								</td>
							</tr>
							<tr>
								<th>网站大标志：</th>
								<td>
									<input type="text" name="Logo" value="<%=Config[Logo]%>" size="55" class="ali-input"><a class="ali-button ali-uploader">浏览...</a>
									<a href="<%=Config[Logo]%>" target="_blank"><img src="<%=Config[Logo]%>" height="22" alt="网站大标志"></a>
								</td>
							</tr>
							<tr>
								<th>网站小标志：</th>
								<td>
									<input type="text" name="Link" value="<%=Config[Link]%>" size="55" class="ali-input"><a class="ali-button ali-uploader">浏览...</a>
									<a href="<%=Config[Link]%>" target="_blank"><img src="<%=Config[Link]%>" height="22" alt="网站小标志"></a>
								</td>
							</tr>
							<tr>
								<th>搜索引擎优化：</th>
								<td>
									页面关键字：<input type="text" name="MetaKeywords" value="<%=Config[MetaKeywords]%>" size="40" maxlength="255" class="ali-input <%=ContentLang%>Font">
									页面描述：<input type="text" name="MetaDescription" value="<%=Config[MetaDescription]%>" size="40" maxlength="255" class="ali-input <%=ContentLang%>Font">
								</td>
							</tr>
							<tr>
								<th>微信公众平台：</th>
								<td>
									AppID：<input type="text" name="WxppAppID" value="<%=Config[WxppAppID]%>" size="30" maxlength="30" class="ali-input CHSFont">
									AppSecret：<input type="text" name="WxppAppSecret" value="<%=Config[WxppAppSecret]%>" size="50" maxlength="50" class="ali-input CHSFont">
								</td>
							</tr>
							<tr>
								<th>微信小程序：</th>
								<td>
									AppID：<input type="text" name="WxmpAppID" value="<%=Config[WxmpAppID]%>" size="30" maxlength="30" class="ali-input CHSFont">
									AppSecret：<input type="text" name="WxmpAppSecret" value="<%=Config[WxmpAppSecret]%>" size="50" maxlength="50" class="ali-input CHSFont">
								</td>
							</tr>
							<tr>
								<th>微信开放平台App：</th>
								<td>
									AppID：<input type="text" name="WxAppAppID" value="<%=Config[WxAppAppID]%>" size="30" maxlength="30" class="ali-input CHSFont">
									AppSecret：<input type="text" name="WxAppAppSecret" value="<%=Config[WxAppAppSecret]%>" size="50" maxlength="50" class="ali-input CHSFont">
								</td>
							</tr>
						</table>
					</div>
				</div>
				<div class="ali-tabs-bottom"><b></b></div>
			</div>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">保 存</button><input type="hidden" name="PictureAllowedType" value="gif|jpg|jpeg|png|bmp|png"></div>
	</form>
</section>